package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.domain.Wareimage;
import com.zoo.diannaopeijian.domain.WareimageExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface WareimageMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @SelectProvider(type=WareimageSqlProvider.class, method="countByExample")
    int countByExample(WareimageExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @DeleteProvider(type=WareimageSqlProvider.class, method="deleteByExample")
    int deleteByExample(WareimageExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @Delete({
        "delete from wareimage",
        "where WareImageID = #{wareimageid,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer wareimageid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @Insert({
        "insert into wareimage (WareImageID, WareId, ",
        "WareImageSrc)",
        "values (#{wareimageid,jdbcType=INTEGER}, #{wareid,jdbcType=INTEGER}, ",
        "#{wareimagesrc,jdbcType=VARCHAR})"
    })
    int insert(Wareimage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @InsertProvider(type=WareimageSqlProvider.class, method="insertSelective")
    int insertSelective(Wareimage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @SelectProvider(type=WareimageSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="WareImageID", property="wareimageid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="WareId", property="wareid", jdbcType=JdbcType.INTEGER),
        @Result(column="WareImageSrc", property="wareimagesrc", jdbcType=JdbcType.VARCHAR)
    })
    List<Wareimage> selectByExample(WareimageExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "WareImageID, WareId, WareImageSrc",
        "from wareimage",
        "where WareImageID = #{wareimageid,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="WareImageID", property="wareimageid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="WareId", property="wareid", jdbcType=JdbcType.INTEGER),
        @Result(column="WareImageSrc", property="wareimagesrc", jdbcType=JdbcType.VARCHAR)
    })
    Wareimage selectByPrimaryKey(Integer wareimageid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WareimageSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") Wareimage record, @Param("example") WareimageExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WareimageSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") Wareimage record, @Param("example") WareimageExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WareimageSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(Wareimage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wareimage
     *
     * @mbggenerated
     */
    @Update({
        "update wareimage",
        "set WareId = #{wareid,jdbcType=INTEGER},",
          "WareImageSrc = #{wareimagesrc,jdbcType=VARCHAR}",
        "where WareImageID = #{wareimageid,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(Wareimage record);
}